package com.yjht.online.generate;

import com.yjht.online.arg.ArgParam;

import java.util.ArrayList;
import java.util.List;

public class GenerateExecute {

    List<Generate> generateList = new ArrayList<>();

    public void register(Generate generate ){
        generateList.add(generate);
    }

    public void execute(ArgParam argParam){

        for (Generate generate : generateList) {
            generate.generate(argParam);
        }

    }
}
